#pragma strict

function Start () {

}
	var showMain: boolean = false;
	var showOptions: boolean = false;


function OnGUI() {
	
	
	if(showMain){
		Time.timeScale=0;
		if (GUI.Button (new Rect (576,133, 288, 128), "Resume")){
			Time.timeScale=1;
			showMain=false;
		}	
		if (GUI.Button (new Rect (576,266, 288, 128), "Options")){
			showOptions=true;
			showMain=false;
	
		}
		if (GUI.Button (new Rect (576, 399, 288, 128), "Exit")){
			Application.LoadLevel("Menu");
			
		}
	}
	if(showOptions){
		if (GUI.Button (new Rect (576,266, 288, 128), "Sound Slider")){
		}
		if (GUI.Button (new Rect (576, 399, 288, 128), "Music Slider")){
	
		}
		if (GUI.Button (new Rect (576, 532, 288, 128), "Back")){
			showOptions=false;
			showMain=true;
		}
			
		
	}
	
}

function Update () {
	if ( Input.GetKeyDown(KeyCode.Escape)){
		showMain=true;
	}

}
